package me.wangcai.trafficpoliceai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.wangcai.trafficpoliceai.model.entity.Violation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ViolationMapper extends BaseMapper<Violation> {
    //插入记录
    boolean insertViolation(Violation violation);
    //根据车牌查询违章记录
    List<Violation> findViolation(String number);
}
